﻿@model IEnumerable<IniTechCaash.Domain.Entities.ActivityLog>
@using System.Collections.Generic
@using IniTechCaash.Domain.Entities

@{
    List<ActivityLog> logs = Model.OrderByDescending(al => al.LogDate).ToList();
}

<h4>Activity Log</h4>
<table class="table">
    <tr>
        <th>Username</th>
        <th>
            @Html.DisplayNameFor(model => model.LogDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Message)
        </th>
    </tr>

@foreach (var item in logs) {
       <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedBy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LogDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Message)
        </td>
    </tr>
}

</table>
